package com.xqboss.apps.dto.consumer;


import com.xqboss.apps.enums.nft.NftTypeEnum;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 回收空投
 *
 * @author makejava
 * @since 2024-02-22 11:20:26
 */
@Data
@ApiModel("回收空投保存参数")
public class ConsumerRecycleSaveDto {


    @ApiModelProperty("转出用户id")
    @NotNull
    private Long fromUserId;

    @ApiModelProperty("转入用户id")
    @NotNull
    private Long toUserId;

    @ApiModelProperty("空投类型")
    @NotNull
    private NftTypeEnum type;

    @ApiModelProperty("空投方式 1批量 2指定")
    @NotNull
    private Integer method;

    @ApiModelProperty("空投数量")
    private Integer num;

    @ApiModelProperty("空投资源id")
    private Long sourceId;

    @ApiModelProperty("指定藏品编码")
    private String nftNumberStr;

    @ApiModelProperty("空投原因")
    @NotBlank
    private String toReason;

    @ApiModelProperty("回收原因")
    @NotBlank
    private String fromReason;

    @ApiModelProperty(value = "创建人id",hidden = true)
    private Long createBy;

}
